package sch.frog.structural.adapter.objectadapter;

import sch.frog.structural.adapter.objectadapter.A.IClassA;
import sch.frog.structural.adapter.objectadapter.A.IClassaAdapter;
import sch.frog.structural.adapter.objectadapter.B.ClassB;

public class ObjectAdapterDemo {

    public static void main(String[] args){
        IClassaAdapter adapter = new IClassaAdapter(new ClassB());
        operation(adapter);
    }

    public static void operation(IClassA classA){
        classA.show();
        System.out.println(classA.add(10, 12));
    }

}
